window.onload=function(){
	//获取验证码弹窗
	var getCode = document.querySelector(".get-code");
	var verifyTel = document.querySelector(".verifyTel");
	var bool = true;
	getCode.addEventListener("click",function(){
		if(bool){
			verifyTel.style.display="block";
			bool = false;
		}
	});
	var cancel = document.querySelector(".cancel");
	cancel.addEventListener("click",function(){
		verifyTel.style.display="none";
		bool = true;
	});
	var ensure = document.querySelector(".ensure");
	ensure.addEventListener("click",function(){
		verifyTel.style.display="none";
		bool=false;
		//倒计时
		var sec = getCode.querySelector("p");
		var timer = null;
		var s = 60;
		timer = setInterval(function(){
			sec.innerText="发送验证码("+s+")";
			sec.style.color="#666";
			if(s<0){
				clearInterval(timer);
				sec.innerText="获取验证码";
				sec.style.color="#113cc6";
				bool=true;
			};
			s--;
		},1000);
	})
	//未通过验证弹窗
	var payBtn = document.querySelector(".payBtn");
	
}
